package orchestration.android.demo;

import java.util.ArrayList;
import java.util.List;

import orchestration.android.parcelable.ParcelableProperty;

import android.app.Service;
import android.content.Intent;
import android.net.Uri;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;

public class PropertyTestService extends Service {

	private IBinder stub= new IPropertyTest.Stub() {
		
		@Override
		public String testUriListParameter(List<Uri> list) throws RemoteException {
			Log.w("PropertyTestService", "arrived here");
			return list.get(0).toString();
		}

		@Override
		public List<Uri> getUriList() throws RemoteException {
			ArrayList<Uri> uris= new ArrayList<Uri>();
			uris.add(Uri.parse("hola://mundo/android"));
			return uris;
		}


		@Override
		public List<ParcelableProperty> getPropertyList(
				List<ParcelableProperty> list) throws RemoteException {
			return list;
		}

		@Override
		public List<String> getStringList(List<String> list)
				throws RemoteException {
			ArrayList<String> result= new ArrayList<String>();
			result.add("hola mundo");
			return result;
		}

		@Override
		public List testList(List list) throws RemoteException {
			// TODO Auto-generated method stub
			return null;
		}

	
	};
	@Override
	public IBinder onBind(Intent arg0) {
		return stub;
	}

}
